package cate.game.role.res.guild.po.my;

import cate.common.table.pay.PayItemRow;
import cp.solution.business.pay.dto.PayDeliverResult;
import cp.solution.business.pay.PayRecordEntity;
import cate.game.GameBody;
import cate.game.pay.PayCallback;
import cate.game.role.Role;

public class GuildPayCallBack extends PayCallback {
    @Override
    public void onSuccess(GameBody game, Role role, PayRecordEntity record, PayDeliverResult result) {
        PayItemRow pir = game.table.pay.item.get(record.itemTid);
        if (pir == null) {
            return;
        }
        role.getRes().guild.getGuild().envelope.afterPay(role, pir.funcSubId);
    }

    @Override
    public void onFail(GameBody game, Role role, PayRecordEntity record, PayDeliverResult result) {
    }

}
